#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>

int main(int argc,char **argv)
{
	char *file="common.c";
	int n;
	int fd=open(file,O_RDONLY);
	char buf[11]={0};
	while(1)
	{
		n=read(fd,buf,10);
		printf("%d\n",n);
		//printf("%s\n",buf);
		memset(buf,0,sizeof(buf));
		if(n == 0)
			break;
	}
	close(fd);
}
	
